package spec.wangyuhang.disanzhang;

public class FinanceInfo {
    private String companyName;//公司名称
    private double eatnestInconme;//定金收入
    private double depositInconme;//押金收入
    private double rentIncome;//租金收入
    private double otherIncome;//其他收入
    private double staffCost;//员工成本
    private double rentCost;//店面成本
    private double hydropowerCost;//水电成本
    private double taxCost;//税收费用
    private double otherCost;//其他费用

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public double getEatnestInconme() {
        return eatnestInconme;
    }

    public void setEatnestInconme(double eatnestInconme) {
        this.eatnestInconme = eatnestInconme;
    }
    public double getDepositInconme() {
        return depositInconme;
    }
    public void setDepositInconme(double depositInconme) {
        this.depositInconme = depositInconme;
    }
    public double getRentIncome() {
        return rentIncome;
    }
    public void setRentIncome(double rentIncome) {
        this.rentIncome = rentIncome;
    }

    public double getOtherIncome() {
        return otherIncome;
    }

    public void setOtherIncome(double otherIncome) {
        this.otherIncome = otherIncome;
    }

    public double getRentCost() {
        return rentCost;
    }

    public void setStaffCost(double staffCost) {
        this.staffCost = staffCost;
    }
    public double getRentConst(){
        return rentCost;
    }
    public void setRentCost(double rentCost){

        this.rentCost=rentCost;
    }
    public double getHydropowCost(){
        return hydropowerCost;
    }
    public void setHydropowerCost(double hydropowerCost)
    {
        this.hydropowerCost= hydropowerCost;
    }
    public double getTaxCost(){
        return taxCost;
    }

    public void setTaxCost(double taxCost) {
        this.taxCost = taxCost;
    }
    public double getOtherCost()
    {
        return otherCost;
    }

    public void setOtherCost(double otherCost) {
        this.otherCost = otherCost;
    }
    public double callncome(){//收入计算
        double sumIncome = eatnestInconme +depositInconme+ rentIncome + otherIncome ;
        return sumIncome;
    }
    public double calCost(){//成本计算
        double calCost = staffCost + rentCost +hydropowerCost + taxCost + otherCost;
        return calCost;
    }
    public double callNetIncome(){//净收入的计算
        System.out.println(companyName+"的净收入计算结果：");
        double netIncome = callncome()- calCost();
        return netIncome;
    }
}





